package dmqm.mall.service.impl;

import dmqm.mall.mapper.UserMapper;
import dmqm.mall.model.User;
import dmqm.mall.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User UserInfo(int id) {
        return userMapper.getUserById(id);
    }
}
